package com.park.web.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.park.web.base.baseOperation.BaseService;
import com.park.web.dao.basSystemManageMapper;
import com.park.web.model.domain.basSystemManage;
import com.park.web.model.dto.basSystemManageDto;
import com.park.web.service.basSystemManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class basSystemManageServiceImpl extends BaseService<basSystemManage> implements basSystemManageService {

    @Autowired
    basSystemManageMapper ibasSystemManageMapper;

    @Override
    public List<basSystemManage> QuerySystemManage() {
        return ibasSystemManageMapper.QuerySystemManage();
    }

    @Override
    public PageInfo<basSystemManage> queryWithPage(basSystemManageDto entity) {
        PageHelper.startPage(entity.getPage(), entity.getPageSize());
        var actionList = ibasSystemManageMapper.queryWithPage(entity);
        return new PageInfo<>(actionList);
    }
}
